/**  @file Info.qml
@brief The Standard info page

@authorname \n
@licenseversion \n
@actualversion - @dateupdate

@licensenote
*/

import QtQuick 1.0
import "Theme.js" as JsObj
import "Geometry.js" as Geometry

Item {
    id: infoElement

    width: objLoad.getWidth();
    height: objLoad.getHeight()

    Rectangle {
        id: formbackground
        width: parent.width; height: parent.height
        color: "#ffffff"; radius: Geometry.getRadius(); border.width: Geometry.getFormBorder();
        border.color: "#666666"
    }

    Text {
        id: textTitle
        width: parent.width;
        anchors.top: parent.top
        anchors.topMargin: Geometry.getSeparator();
        anchors.left: parent.left
        anchors.leftMargin: 25
        anchors.rightMargin: 5
        wrapMode: TextEdit.NoWrap
        text: objLoad.getString();
        font.weight: Font.Bold
        font.pointSize: Geometry.getFontPoints() + 2;
    }

    Text {
        id: textIntro
        width: parent.width
        anchors.top: textTitle.bottom
        anchors.topMargin: 15
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.leftMargin: 20
        anchors.rightMargin: 20
        wrapMode: TextEdit.Wrap
        text: objLoad.getMessage();
        font.weight: Font.Normal
        font.pointSize: Geometry.getFontPoints();
    }

    Image {
        id: logo
        width: if (parent.width > parent.height) { Math.round(parent.height * 0.40); }
                else { Math.round(parent.width * 0.40); }
        height: if (parent.width > parent.height) { Math.round(parent.height * 0.40); }
                else { Math.round(parent.width * 0.40); }
        anchors.horizontalCenter: parent.horizontalCenter;
        anchors.bottom: parent.bottom
        anchors.bottomMargin: Geometry.getSeparator();
        fillMode: Image.PreserveAspectFit
        source: objLoad.getIcon();
    }
}
